package com.blank.shop.nacos.provider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <br/>Date 2021/8/29
 * <br/>Time 15:12:40
 *
 * @author _blank
 */
@RestController
public class ServiceProviderController {

    @Value("${server.port}")
    private Integer port;

    @PostMapping(path = {"provider-say-hello"})
    public ResponseEntity<String> providerSayHello() {
        return ResponseEntity.ok("来自端口：" + this.port + "，您好，世界！");
    }

}
